<?php
/************************FoxPHP威客系统************************/
/*                                                            */
/*  FoxPHP.Com (C)2006-2016 FoxPHP Inc.                       */
/*  This is NOT a freeware, use is subject to license terms   */
/*  FoxPHP威客系统是商业软件,使用于商业用途请购买授权         */
/*  V3.0 2016.3                                               */
/*  foxphp@aliyun.com                                         */
/*  http://www.foxphp.com                                     */
/*                                                            */
/**************************************************************/

namespace Buyer\Controller;
use Think\Controller;
class TaskController extends \Member\Controller\IndexController {

    public function indexAction(){
		
		$model=new \Data\Model\DataModel();
		foreach($model->GetMyTask(		 	 	 	
				//排序
				array(
					array('order'=>'id','name'=>'编号'),
					array('order'=>'subject','name'=>'任务标题'),
					array('order'=>'money','name'=>'金额 '),
					array('order'=>'draft_number','name'=>'投稿量'),
					array('order'=>'dateline','name'=>'发布时间'),
					array('order'=>'endtime','name'=>'结束时间'),
					array('order'=>'process','name'=>'状态')
				),
				array(	
					'task_mode'=>array('task_mode','int'),
					'process_order'=>array('process_order','int'),
					'id'=>array('id','int')
				)
			) as $key=>$value){
			$this->assign($key,$value);
		}
		
		$this->display();	
    }

}